package day06;

import java.util.Comparator;
import java.util.List;
import java.util.stream.Stream;

public class PersonUtils {

    public static Stream<Man> formatManByAge(List<Man> list) {
        return list.stream().filter(man -> man.getAge() > 8).sorted(Comparator.comparingInt(Man::getAge));
    }

}
